package com.hs.mapper;

import com.hs.entity.CourseCollect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseCollectMapper {
    //增
    int addCourseCollect(CourseCollect courseCollect);
    //删
    int deleteCourseCollect(int id);
    //改
    int updateCourseCollect(CourseCollect courseCollect);
    //查
    List<CourseCollect> getCourseCollectById(int id);
    //
    int add( @Param("cid") int cid,@Param("uid")int uid);
    // 可添加其他相关方法，如取消收藏、查询是否收藏等
    int delete(@Param("cid") int cid,@Param("uid") int uid);
    int checkCollect( @Param("cid") int cid,@Param("uid") int uid);
}
